package com.ruoyi.digest.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 热搜主题AI生成文本对象 hs_generated_text
 * 
 * @author lzk
 * @date 2025-06-16
 */
@Schema(description = "热搜主题AI生成文本对象")
public class HsGeneratedText extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 物理主键 */
    @Schema(title = "物理主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 热搜主题ID */
    @Schema(title = "热搜主题ID")
    @Excel(name = "热搜主题ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long topicId;

    /** 生成配置ID */
    @Schema(title = "生成配置ID")
    @Excel(name = "生成配置ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long configId;

    /** AI生成的文章标题 */
    @Schema(title = "AI生成的文章标题")
    @Excel(name = "AI生成的文章标题")
    private String generatedTitle;

    /** AI生成的概要内容 */
    @Schema(title = "AI生成的概要内容")
    @Excel(name = "AI生成的概要内容")
    private String summaryContent;

    /** AI生成的文章内容 */
    @Schema(title = "AI生成的文章内容")
    @Excel(name = "AI生成的文章内容")
    private String generatedArticle;

    /** 关键词，逗号分隔 */
    @Schema(title = "关键词，逗号分隔")
    @Excel(name = "关键词，逗号分隔")
    private String keywords;

    /** 参与分析的文章数量 */
    @Schema(title = "参与分析的文章数量")
    @Excel(name = "参与分析的文章数量")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long articleCount;

    /** 实际虚构等级：0-基于事实，1-部分虚构，2-完全虚构 */
    @Schema(title = "实际虚构等级：0-基于事实，1-部分虚构，2-完全虚构")
    @Excel(name = "实际虚构等级：0-基于事实，1-部分虚构，2-完全虚构")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fictionLevel;

    /** 生成状态：0-未处理，1-生成成功，2-生成失败 */
    @Schema(title = "生成状态：0-未处理，1-生成成功，2-生成失败")
    @Excel(name = "生成状态：0-未处理，1-生成成功，2-生成失败")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long generationStatus;

    /** 内容质量评分(0.00-1.00) */
    @Schema(title = "内容质量评分(0.00-1.00)")
    @Excel(name = "内容质量评分(0.00-1.00)")
    private BigDecimal qualityScore;

    /** 创建者 */
    @Schema(title = "创建者")
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @Schema(title = "创建时间")
    @Excel(name = "创建时间")
    private LocalDate createdTime;

    /** 更新者 */
    @Schema(title = "更新者")
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @Schema(title = "更新时间")
    @Excel(name = "更新时间")
    private LocalDate updatedTime;

    /** 删除标志 */
    @Schema(title = "删除标志")
    private String delFlag;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }


    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }


    public void setGeneratedTitle(String generatedTitle)
    {
        this.generatedTitle = generatedTitle;
    }

    public String getGeneratedTitle()
    {
        return generatedTitle;
    }


    public void setSummaryContent(String summaryContent) 
    {
        this.summaryContent = summaryContent;
    }

    public String getSummaryContent() 
    {
        return summaryContent;
    }


    public void setGeneratedArticle(String generatedArticle) 
    {
        this.generatedArticle = generatedArticle;
    }

    public String getGeneratedArticle() 
    {
        return generatedArticle;
    }


    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }


    public void setArticleCount(Long articleCount) 
    {
        this.articleCount = articleCount;
    }

    public Long getArticleCount() 
    {
        return articleCount;
    }


    public void setFictionLevel(Long fictionLevel) 
    {
        this.fictionLevel = fictionLevel;
    }

    public Long getFictionLevel() 
    {
        return fictionLevel;
    }


    public void setGenerationStatus(Long generationStatus) 
    {
        this.generationStatus = generationStatus;
    }

    public Long getGenerationStatus() 
    {
        return generationStatus;
    }


    public void setQualityScore(BigDecimal qualityScore) 
    {
        this.qualityScore = qualityScore;
    }

    public BigDecimal getQualityScore() 
    {
        return qualityScore;
    }


    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }


    public void setCreatedTime(LocalDate createdTime) 
    {
        this.createdTime = createdTime;
    }

    public LocalDate getCreatedTime() 
    {
        return createdTime;
    }


    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }


    public void setUpdatedTime(LocalDate updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public LocalDate getUpdatedTime() 
    {
        return updatedTime;
    }


    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("topicId", getTopicId())
            .append("configId", getConfigId())
            .append("summaryContent", getSummaryContent())
            .append("generatedArticle", getGeneratedArticle())
            .append("keywords", getKeywords())
            .append("articleCount", getArticleCount())
            .append("fictionLevel", getFictionLevel())
            .append("generationStatus", getGenerationStatus())
            .append("qualityScore", getQualityScore())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
